<div class="main_right_between" style="min-height: 850!important;">
    <?php if($product):?>
    <div class="detail_product">

        <div class="product_firgure">
            <p class="product_img">
                <?php if(!is_file("admin/".$product['product_thumb'])):?>
                    <img src="<?=_BASE_URL?>admin/assets/uploads/images/news/imgerr.jpg" />
                <?php else:?>
                    <img src="<?=_BASE_URL?>admin/<?=$product['product_thumb']?>" />
                <?php endif?>
            </p><!--End of .product_img -->

            <ul class="product_info">
            <form action="" class="addcart" method="POST">
                <li class="head"><?=mb_strtoupper($product['product_name'], 'UTF-8') ?></li>
                <li>Giá kệ: <span class="x"><?= number_format($product['product_price'],0,",",".")?> VNĐ</span></li>
                <?php if($product['product_price_sale'] != 0):?>
                    <li>Giá bán: <span class="x spec"><?= number_format($product['product_price_sale'],0,",",".")?> VNĐ</span></li>
                <?php else:?>
                    <li>Giá bán: <span class="x spec"><?= number_format($product['product_price'],0,",",".")?> VNĐ</span></li>
                <?php endif;?>
                <li>Số lượt xem: <span class="x"><?=$product['product_counter']?></span></li>
                <li>Loại sản phẩm: <span class="x"><?=$cate?></span></li>
                <?php if($product['product_quantity'] > 0):?>
                    <li>Tình trạng: <span class="x">Còn hàng</span></li>
                <?php else:?>
                    <li>Tình trạng: <span class="x">Hết hàng</span></li>
                <?php endif?>

                <li>Số lượng:
                    <span class="x">
                        <input type="text" name="quantity" value="1" />
                    </span>
                </li>

                    <a  style="display: block;margin-top: 7px; float: left" href="#giohang" class="cart">
                	   <img src="<?=_BASE_URL?>/assets/frontend/css/img/icon_muahng.png"/>
                    </a>


                <input type="hidden" value="<?=$product['product_id']?>" name="product_id" />
            </form>
            </ul>
        </div><!--End of .product_firgure -->

        <div style="clear: both;"></div>

        <div class="product_des">
            <p class="a" style="padding: 0!important;">Chi tiết</p>
            <?= $product['product_des']?>
        </div><!--End of .product_des -->

        <div style="clear: both;"></div>

        <div class="product_relation">
            <p class="a" style="font-size: 2em!important;">Sản phẩm liên quan</p>

            <?php if(!empty($random_products)):?>
            <?php foreach($random_products as $random_product):?>
                <div class="product_new">
                <form action="" class="addcart" method="POST">
                	<div class="text_PRODUCT1">
                	   <p class="pro_name"><a style="color: #80F2F3 !important;" href="<?=_BASE_URL?>index.php?module=product&action=detail&slug=<?=$random_product['slug']?>"><?=$random_product['product_name']?></a></p>
                	</div>
                	<div class="img_product">
                        <p class="img_bg">
                            <a href="<?=_BASE_URL?>index.php?module=product&action=detail&slug=<?=$random_product['slug']?>"><img src="<?=_BASE_URL?>admin/<?=$random_product['product_thumb']?>"/></a>
                        </p>
               		</div>
                    <div style="clear: both;"></div>
                	<div class="text_PRODUCT_price">
                		<?=number_format($random_product['product_price'],0,",",".")?> VNÐ
                	</div>
                    <a class="product_icon cart" href="#giohang">
                    	<img src="<?=_BASE_URL?>assets/frontend/css/img/icon_muahng.png"/>
                    </a>
                    <a class="product_icon1" href="<?=_BASE_URL?>index.php?module=product&action=detail&slug=<?=$random_product['slug']?>">
                    	<img src="<?=_BASE_URL?>assets/frontend/css/img/icon_chitiet.png"/>
                    </a>
                    <input type="hidden" value="<?=$random_product['product_id']?>" name="product_id" />
                </form>
                </div>
            <?php endforeach;?>
            <?php endif;?>

        </div><!--End of.product_relation-->

    </div><!--End of .detail_product -->
    <?php endif;?>

    <div class="back"><a href="<?= _BASE_URL?>" title="Quay lại trang chủ">Back</a></div>
</div><!--End of .main_right_between -->

